package com.cljh.service;

import com.cljh.bean.Products;
import com.cljh.controller.page.PageBean;
import com.cljh.controller.page.ProductList;
import com.cljh.controller.page.UserPageBean;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface ProductsService {
    boolean save( Products products);


    boolean delete(Integer id);


    boolean update( Products products);



    boolean deleteByIds(List<Integer> ids);


    UserPageBean selectById(Integer id);


    List<ProductList> productsList();


//    boolean saveAll( List<Products> products);

    PageBean<UserPageBean> productsConditionList(Integer currentPage, Integer pageSize, UserPageBean userPageBean);

    List<Products> selectByUser(Integer id);


    boolean deleteByUserAndProduct(Integer userId, Integer productId);
}
